<div class="modal-content">
  <div class="modal-header">
    <button type="button" class="close" ng-click="cancel()" aria-label="Close">
      <em class="ion-ios-close-empty sn-link-close"></em>
    </button>
    <h4 class="modal-title" id="modal-title">修改密码</h4>
  </div>
  <div class="modal-body" id="modal-body">

  <div class="row">
    <div class="col-sm-12">
        <form class="form-horizontal" name="menuBarForm" id="menuBarForm" angular-validator angular-validator-submit="ok()" novalidate >

          <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">原始密码</label>
            <div class="col-sm-10">
              <input type="password" class="form-control" id="inputPassword3" placeholder="输入原始密码..."
                     ng-model="formData.password" name="oldPassword" autocomplete="new-password"
                     validator = "passwordValidator(formData.password) === true"
                     invalid-message = "passwordValidator(formData.password)"
                     required-message="'*请输入原始登陆密码..'"
                     validate-on="dirty"
                     required>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label">新密码</label>
            <div class="col-sm-10">
              <input type="password" class="form-control"  placeholder="输入新密码..."
                     ng-model="formData.newPassword" name="password" autocomplete="new-password"
                     validator = "newPasswordValidator(formData.newPassword) === true"
                     invalid-message = "newPasswordValidator(formData.newPassword)"
                     required-message="'*请输入新的登陆密码..'"
                     validate-on="dirty"
                     required>
            </div>
          </div>
          <div class="form-group">
            <label for="inputPassword4" class="col-sm-2 control-label">确认新密码</label>
            <div class="col-sm-10">
              <input type="password" class="form-control" id="inputPassword4" placeholder="再次输入新密码..."
                     ng-model="formData.rePassword" autocomplete="new-password"
                     validator = "formData.newPassword === formData.rePassword" name="rePassword"
                     invalid-message = "'*两次密码不一致!'"
                     required-message="'*请再次输入登陆密码..'"
                     validate-on="dirty"
                     required>
            </div>
          </div>


          <div class="form-group">
            <div class="col-sm-12 text-center">
              <button type="submit" class="btn btn-primary" ng-click="validate()">保&nbsp;&nbsp;&nbsp;&nbsp;存</button>
              <button type="button" class="btn btn-warning" style="margin-left: 20px" ng-click="cancel()">返&nbsp;&nbsp;&nbsp;&nbsp;回</button>
            </div>
          </div>
        </form>
    </div>
  </div>
  </div>
  <div class="modal-footer">
    &nbsp;
  </div>
</div>

